public class c5_1{
    public static void main(String[] args){
        double bigdataSum = 0, bigdataAver = 0;
        double pythonSum = 0, pythonAver = 0;
        double[] Bigdata = {78,72,75,79,76,74.5,77,71,78,79,
                80,81,83,85,84.5,87,88,86,85,89,90,
                91,92,94.5,95, 93,98,97,96,92};
        double[] PythonScore = {78,72,75,79,76,74.5,77,71,78,79,
                80,81,83,85,84,87,88,86,85,89,
                90,91,92,94,95,93,98,97,96,92};
        System.out.println("以下是学生的大数据技术成绩：");
        for(int i = 0;i < Bigdata.length;i++){
            if(i % 10 == 0){
                System.out.println();
            }
            System.out.print(Bigdata[i]+"\t");
            bigdataSum += Bigdata[i];
        }
        System.out.println();
        bigdataAver = ((bigdataSum/Bigdata.length*100.0))/100.0;
        System.out.println("大数据技术的总成绩是: " + bigdataSum);
        System.out.println("大数据技术的平均成绩是: " +String.format
                ("%.2f",bigdataAver));
        System.out.println("-----------------------------------");
        System.out.println("以下是学生的Python程序设计成绩: ");
        for(int j = 0;j < PythonScore.length;j++){
            if(j % 10 == 0) {
                System.out.println();
            }
            System.out.print(PythonScore[j]+ "\t");
            pythonSum += PythonScore[j];
        }
        System.out.println();
        pythonAver = ((pythonSum / PythonScore.length * 100.0)) / 100.0;
        System.out.println("Python程序设计的总成绩是："+ pythonSum);
        System.out.println("Python程序设计的平均成绩是: "+String.format("%.2f", pythonAver));
    }
}
